package com.echo.code.spring.springbootdemo.spel;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * Description
 *
 * @author baiyp
 * @version 1.0.0
 * @date 2019/04/27
 */
public class App {
  public static void main(String[] args) throws IOException {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
    context.register(CustomConfig.class);
    context.refresh();
    CustomConfig config = context.getBean(CustomConfig.class);
    config.getWallImageInfo();
    AutoConfig autoConfig = context.getBean(AutoConfig.class);
    System.out.println(autoConfig);
    context.close();
  }
}
